#include<stdio.h>
int main ()
	
{/*float a,b;
scanf("%f%f",&a,&b);
printf("%.2f\n",a*b);
printf("%.2f\n",a/b);
printf("%.2f\n",a+b);
printf("%.2f\n",a-b);*/
	/*int y=0,c,a;
y=5==4+1;
a+=a-=a=9;*/
//x=y+m+5,y++;
//int a=2,b=3,c=4;
//a*=16+(b++)-( ++c);
	//printf("%d\n",/*x,*/a);
//	printf("%d\n",(int)( ( double)9/2) - 9%2);
	int a,b,c;
	scanf("%d%d",&a,&b);
	c=a;a=b;b=c;
	printf("%d\n%d",a,b);
return 0;
}
